package sfeir.gwt.ergosum.server.service;

import sfeir.gwt.ergosum.client.ClientApi.NotLoggedInException;
import sfeir.gwt.ergosum.client.model.Person;
import sfeir.gwt.ergosum.server.util.Pair;

public interface ProfileService {
    public Person getUserProfile() throws NotLoggedInException;
    public Person getProfile(String email);
    public Long savePerson(Person p) throws NotLoggedInException;
    public String saveProfilePicture(String mime, byte[] data, String string) throws NotLoggedInException;
    public Pair<byte[], String> getProfilePicture(String email);
}
